<template>
  <div class="Mine-categories-swipe">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item
        v-for="(item, index) in mainStores.carouseldatas"
        :key="index"
        ><img :src="item.img" alt="" class="imgcarousel"
      /></van-swipe-item>
    </van-swipe>
  </div>
</template>

<script setup>
import { useStores } from "../stores/stores";
const mainStores = useStores();

mainStores.hancarousel();
</script>
<style scoped>
.Mine-categories-swipe img {
  display: inline-block;
  width: 100%;
  height: 275px;
}

.my-swipe .van-swipe-item {
  width: 100%;
  height: 275px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  background-color: #39a9ed;
}

.imgcarousel {
  /* display: block; */
  width: 100%;
  height: 100%;
}
</style>
